import request from '@/utils/request'
import { download } from '@/utils/request'

// 修改学历认证
export function updateEducation(data) {
  return request({
    url: '/businessCore/faUserAuthenticationEdu',
    method: 'put',
    data
  })
}

// 删除学历认证
export function delEducation(id) {
  return request({
    url: '/businessCore/faUserAuthenticationEdu/' + id,
    method: 'delete'
  })
}

// 导出学历认证
export function exportEducation(params, fileName) {
  const url = '/businessCore/faUserAuthenticationEdu/export'
  download(
    url,
    params,
    fileName + `_${new Date().getTime()}.xlsx`
  )
}